/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Multimedia;

/**
 *
 * @author Servidor
 */
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author manix
 */
import java.awt.Dimension;
import java.awt.Toolkit;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;

public class MediaVideo {
    // launch the application

    public MediaVideo(){}

    public JFrame mediaTest = new JFrame("Media Tester");

    public static void main(String args[]) {
    } // end main

    public void ReproducirIntro() {
        try {
            // show open file dialog

            URL mediaURL = new URL("file:/C:/Documents and Settings/Arquitectura/Escritorio/Presentacion.mpg");
            if (mediaURL != null) {
                //Inicializacion de Dimensiones
                Dimension dim;
                dim = Toolkit.getDefaultToolkit().getScreenSize();
                //Dimensiones
                
                //Configuracion de dimensiones
                mediaTest.setBounds(0, 0, dim.width, dim.height);
                //Finalizacion de configuracion de dimenciones
                mediaTest.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

                MediaPanel mediaPanel = new MediaPanel(mediaURL);
                mediaTest.add(mediaPanel);

                //mediaTest.setSize(300, 300);
                mediaTest.setVisible(true);
            } // end inner if
        } catch (MalformedURLException ex) {
            Logger.getLogger(MediaVideo.class.getName()).log(Level.SEVERE, null, ex);
        }

    }

    public void desabilitarFrame() {
    
        mediaTest.setVisible(false);
    }
} // end class MediaTest

